from django.db import models

class theme(models.Model):
	title = models.CharField(max_length=30)
	
class discussion (models.Model):
	themeid = models.IntegerField()
	title = models.CharField(max_length=30)
	text = models.TextField()
	rating = models.IntegerField()
	
	
class topic (models.Model):
	discussionid = models.IntegerField()
	text = models.TextField()
	autor = models.CharField(max_length=10)
	cdata = models.DateField()
	
class confirm (models.Model):
	userid=models.CharField(max_length=10)
	username=models.CharField(max_length=20)
	password=models.CharField(max_length=20)

class captcha (models.Model):
	filename=models.CharField(max_length=20)
	value=models.CharField(max_length=10)